package com.xxbb.chapter_5.dome1;

import com.xxbb.util.tool.Tool;

public class Program {
    public static void main(String[] args) throws  StringTooLongException {
        while (true){
            String  str= Tool.input("请输入字符：");
            if (str.length()>20){
                throw  new  StringTooLongException();
            }
            if (str.equals("DONE")){
                return;
            }
        }
    }
}
